package com.eunion.web.common.base;

import java.util.ArrayList;
import java.util.List;

/**
 * 查询条件的
 * 
 * 
 * @version 2016年4月12日 下午9:58:46
 */
public class CriteraConditions {

	public static final Object between = "between";
	public static final Object gt = "gt";
	public static final Object ge = "ge";
	public static final Object lt = "lt";
	public static final Object le = "le";
	public static final Object equal = "equal";
	public static final Object notEqual = "notEqual";
	public static final Object isEmpty = "isEmpty";
	public static final Object isNotEmpty = "isNotEmpty";
	public static final Object like = "like";
	public static final Object notLike = "notLike";
	public static final Object in = "in";
	public static final Object isNull = "isNull";
	public static final Object isNotNull = "isNotNull";

	public static List<Object> CONDITION_LIST = new ArrayList<Object>();

	static {
		CONDITION_LIST.add(between);
		CONDITION_LIST.add(gt);
		CONDITION_LIST.add(ge);
		CONDITION_LIST.add(lt);
		CONDITION_LIST.add(le);
		CONDITION_LIST.add(equal);
		CONDITION_LIST.add(notEqual);
		CONDITION_LIST.add(isEmpty);
		CONDITION_LIST.add(isNotEmpty);
		CONDITION_LIST.add(like);
		CONDITION_LIST.add(notLike);
		CONDITION_LIST.add(in);
		CONDITION_LIST.add(isNull);
		CONDITION_LIST.add(isNotNull);
	}

	public static final Object asc = "asc";
	public static final Object desc = "desc";

	public static final Object avg = "avg";
	public static final Object sum = "sum";
	public static final Object sumAsLong = "sumAsLong";
	public static final Object sumAsDouble = "sumAsDouble";
	public static final Object max = "max";
	public static final Object min = "min";
	public static final Object greatest = "greatest";
	public static final Object least = "least";
	public static final Object count = "count";
	public static final Object countDistinct = "countDistinct";
	public static final Object isTrue = "isTrue";
	public static final Object isFalse = "isFalse";
	public static final Object greaterThan = "greaterThan";
	public static final Object greaterThanOrEqualTo = "greaterThanOrEqualTo";
	public static final Object lessThan = "lessThan";
	public static final Object lessThanOrEqualTo = "lessThanOrEqualTo";
	public static final Object neg = "neg";
	public static final Object abs = "abs";

}
